package lesson5;

public class Demo1 {
    public static void main(String[] args) {
        //抽象类不能直接实例化对象
        //抽象类生来就是用来被继承的
       // Person person = new Person();
        Student student = new Student();
        Person person = new Student();
        person.eat();
    }
}
